import request from '@/utils/request'
// 查询子库管理列表
export function listTaskManagement(query) {
	return request({
		url: '/hidden/TaskManagement/list',
		method: 'get',
		params: query
	})
}
// 发送任务
export function sendTask(data) {
	return request({
		url: '/hidden/TaskManagement/submitData',
		method: 'post',
		data: data
	})
}

// 修改子库管理
export function updateTaskManagement(data) {
	return request({
		url: '/hidden/TaskManagement',
		method: 'put',
		data: data
	})
}

// 删除子库管理
export function delTaskManagement(taskId) {
	return request({
		url: '/hidden/TaskManagement/' + taskId,
		method: 'delete'
	})
}

export function upload(data) {
	return request({
		url: '/common/file/upload',
		headers: {
			'Content-Type': "multipart/form-data"
		},
		method: 'post',
		data
	})
}
// 发送记录
export function listRecord() {
	return request({
		url: '/hidden/record/list',
		method: 'get',
	})
}

// 发送记录详情
export function recordDetail(recordId) {
	return request({
		url: '/hidden/record/' + recordId,
		method: 'get'
	})
}